package com.qf.hospital.enums;

/**
 * @author zjw
 * @description
 * @date 2021/10/15 14:40
 */
public enum HospitalExceptionEnums {

    LOGIN_TIMEOUT(555,"登录已经超时！"),
    USERNAME_PASSWORD_ERROR(666,"用户或密码输入错误！"),
    REQUEST_PARAMETER_ERROR(400,"请求参数异常！"),
    USER_HAS_EXPIRED(888,"用户已经失效！"),
    USER_ADD_ERROR(777,"添加用户信息失败！"),
    USER_SAVE_USER_ROLE_ERROR(778,"分配用户角色信息失败！"),
    ROLE_SAVE_ROLE_MENU_ERROR(779,"分配角色菜单信息失败！"),
    REPORT_ADD_ERROR(999,"添加患者信息失败！"),
    ;

    private Integer code;

    private String msg;

    HospitalExceptionEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
